home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7645 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  875 b 

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: garlans@usa.pipeline.com(White Shade)
  3. Newsgroups: comp.lang.c++
  4. Subject: QUESTION:Random Numbers, etc
  5. Date: 24 Feb 1996 19:39:56 GMT
  6. Organization: Pipeline USA
  7. Message-ID: <4gnpic$j5s@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  9. X-PipeUser: garlans
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (White Shade)
  12. X-Newsreader: Pipeline USA v3.4.0
  13.  
  14. Hi, I'm a bit new to C/C++ programming. I have Microsoft Visual C++ 1.52,
  15. and I'm trying to convert a few of my Basic programs to C so they'll run a
  16. lot faster. I need to know how to get a random number starting from one and
  17. ending at a certain number, like Basics a=int(rnd(1)*#)+1 or something...  
  18.  
  19. Oh yeah, I can't check this group very often, so could you send replies to
  20. my e-mail address, GARLANS@USA.PIPELINE.COM ? Thanks... 
  21.  
  22. Thanks in advance! 
  23.  
  24. Bye! :)
  25.